package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.WhOutOrderAllocate;
import cn.stylefeng.guns.modular.order.model.params.WhOutOrderAllocateParam;
import cn.stylefeng.guns.modular.order.model.result.WhOutOrderAllocateResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 武汉合单商品分配 服务类
 * </p>
 *
 * @author wp
 * @since 2025-10-13
 */
public interface WhOutOrderAllocateService extends IService<WhOutOrderAllocate> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-10-13
     */
    void add(WhOutOrderAllocateParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-10-13
     */
    void delete(WhOutOrderAllocateParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-10-13
     */
    void update(WhOutOrderAllocateParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-10-13
     */
    WhOutOrderAllocateResult findBySpec(WhOutOrderAllocateParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-10-13
     */
    List<WhOutOrderAllocateResult> findListBySpec(WhOutOrderAllocateParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-10-13
     */
     LayuiPageInfo findPageBySpec(WhOutOrderAllocateParam param,String condition);

    List<WhOutOrderAllocateResult> getOutOrderAllocate(String storageOutNumber, Long storageGoodsId);

    WhOutOrderAllocateResult getOutOrderAllocateUn(String storageOutNumber, Long storageGoodsId);

    List<WhOutOrderAllocateResult> getOutOrderAllocateDetail(String storageOutNumber, Long storageGoodsId);
}
